package com.etc.dao;

import java.util.List;

import com.etc.entity.Comment;

public interface CommentMapper {
	int deleteByPrimaryKey(Integer comid);

	int insert(Comment record);

	int insertSelective(Comment record);

	Comment selectByPrimaryKey(Integer comid);

	int updateByPrimaryKeySelective(Comment record);

	int updateByPrimaryKey(Comment record);

	List<Comment> selectByPage(int start, int limit, String content);

	int selectCount(String content);
	
	//根据景点id查所属评论
	List<Comment> selectByTraid(int traid);
	
	int selectCountByTraid(int traid);
}